$(document).ready(function () {


        $("#pie-2").append("<table id='ta1'><tr><th>日期</th><th>确诊</th><th>疑似</th><th>治愈</th><th>死亡</th></tr></table>").css("color","#5ac8fa");
        $("#ta1").append("<tr><th id='date1'></th><th id='diag1'></th><th id='susp1'></th><th id='cured1'></th><th id='died1'></th></tr>");
        $("#ta1").append("<tr><th id='date2'></th><th id='diag2'></th><th id='susp2'></th><th id='cured2'></th><th id='died2'></th></tr>");
        $("#ta1").append("<tr><th id='date3'></th><th id='diag3'></th><th id='susp3'></th><th id='cured3'></th><th id='died3'></th></tr>");
        $("#ta1").css("width","100%").css("height","100%");
        $.ajax(
            {
            url:"/data_table"
            ,async:true
            ,dataType:'JSON'
            ,timeout:10000
            ,contentType:"application/json"
            ,success:function (data) {
                for (var i=0;i<data.length;i++){
                    $("#date"+(i+1).toString()).text(data[i].date);
                    $("#diag"+(i+1).toString()).text(data[i].diagnosed);
                    $("#susp"+(i+1).toString()).text(data[i].suspected);
                    $("#cured"+(i+1).toString()).text(data[i].cured);
                    $("#died"+(i+1).toString()).text(data[i].died);
                }
            }
            }
        )
    })